package com.ipzoe.web.model.oms;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ipzoe.common.annotation.Excel;
import com.ipzoe.mem.domain.Member;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单对象 oms_order
 * 
 * @author eric
 * @date 2020-09-06
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
public class OrderVO implements Serializable {

private static final long serialVersionUID=1L;


    /** $column.columnComment */
    private Long id;

    /** 订单号码 */
    private String orderSn;

    /** 购买用户 */
    private Long memberId;

    private Member member;

    /** 会员卡券id */
    private Long cardId;

    /** 会员卡号 */
    private String cardNum;

    /** 经销商id */
    private Long dealerId;

    /** 充值套餐id */
    private Long packageId;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 订单总金额 */
    private BigDecimal totalAmount;

    /** 应付金额（实际支付金额） */
    private BigDecimal payAmount;

    /** 支付方式 */
    private Integer payType;

    /** 订单来源 */
    private Integer sourceType;

    /** 订单状态 */
    private Integer status;

    /** 订单备注 */
    private String note;

    /** $column.columnComment */
    private Integer delFlag;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date paymentTime;

    /** 订单类型 */
    private Integer orderType;
    private Date memberEndTime;
    private Integer payStatus;

    private String payImgName;

    private String payResult;

}
